package com.study.concurrent.singleton;

/**
 * Description:
 * User: 27010
 * DateTime: 2018/6/20 23:37
 */
//静态内部类实现
public class Singleton3 {
    private static class SingletonClassInstance {
        private static final Singleton3 instance = new Singleton3();
    }
    private Singleton3() { }
    public static Singleton3 getInstance() {
        return SingletonClassInstance.instance;
    }
}
